package com.eptok.demo.project.springboot.control;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 测试控制器
 */
@Controller
public class HelloController {
	 private Log log = LogFactory.getLog(HelloController.class);
	 
    @RequestMapping("/index")
    @ResponseBody
    public String hello() {
    	log.info("--------Hello Spring Boot!");
        return "Hello Spring Boot!";
    }
}
